package com.ciaojian.worker.service;

import com.ciaojian.core.model.MaterialApplyRecord;
import com.ciaojian.core.service.MaterialApplyRecordService;
import org.springframework.stereotype.Service;

/**
 * @author Atlakyn
 */
@Service
public class MaterialApplyRecordServiceImpl extends MaterialApplyRecordService {
    /**
     * 撤回申请
     *
     * @param record 记录 ID
     * @return 撤回结果
     */
    public boolean withdraw(MaterialApplyRecord record) {
        record.setLogicDel(Boolean.TRUE);
        return record.updateById();
    }
}
